<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>工资管理</title>
    <jsp:include page="/static/common/easyui-header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/payroll.js"></script>
</head>
<body>
<table id="payroll_datagrid"></table>
<%--工具条--%>
<div id="payroll_datagrid_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="editPayroll">编辑</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="removePayroll">删除</a>
        <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reloadPayroll">刷新</a>
        <input name="keyword" class="easyui-textbox" style="width: 100px;" data-options="prompt:'员工姓名:'" id="keyword">
        <input name="minDate" class="easyui-datebox" style="width: 137px;" data-options="prompt:'起始时间:'" id="btn_beginDate">
        <input name="maxDate" class="easyui-datebox" style="width: 137px;" data-options="prompt:'终止时间:'" id="btn_endDate">
        <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="search_realname">查询</a>
        <a class="easyui-linkbutton" iconCls="icon-tip" plain="true" data-cmd="adjust">结算</a>
        <a class="easyui-linkbutton" iconCls="icon-undo" plain="true" data-cmd="import">导入</a>
        <a class="easyui-linkbutton" iconCls="icon-print" plain="true" data-cmd="export">导出</a>
</div>
<%--表格--%>
<table id="payroll_datagrid"></table>
<%--添加的弹框--%>
<div id="payroll_dialog" style="padding: 10px">
    <form id="payroll_add_form" method="post">
        <input type="hidden" name="id" id="payroll_id">
        <h2 id="employee_realname" style="color: orangered" align="center"></h2>
        <table>
            <tr>
                <td>月&emsp;&emsp;份</td>
                <td><input disabled name="month" class="easyui-textbox" readonly="readonly"></td>
            </tr>

            <tr>
                <td>最终工资</td>
                <td><input name="finalSalary" class="easyui-textbox" id="finalSalary_id"></td>
            </tr>
        </table>
    </form>
</div>
<%--弹窗的底部工具--%>
<div id="payroll_dialog_buttons">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>
<%--工资表的导入操作--%>
<div id="payroll_import">

    <form id="import_form" method="post" enctype="multipart/form-data">
        <a id="download" class="easyui-linkbutton" iconCls="icon-redo" plain="true" data-cmd="download">模板下载</a><br>
        工资表上传:<input id="payrolle_xls" name="file" class="easyui-filebox" style="width:300px"
                     data-options="accept:'application/vnd.ms-excel',multiple:false,buttonText:'请选择要上传的工资表'"><br>
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="upload">提交</a>
    </form>

</div>
</body>
</html>
